package the.broccoli.uc.entity;

import lombok.Data;
import org.wisteria.framework.web.mvc.entity.SuperEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author lei.liu
 * @since 2018-10-12
 */
@Data
@TableName("uc_user")
public class User extends SuperEntity {

    private static final long serialVersionUID = -6571824753470782011L;
    /**
     * 用户ID。主键
     */
    @TableId("user_id")
    private String userId;
    /**
     * 租户ID
     */
    @TableField("tenant_id")
    private Integer tenantId;
    /**
     * 账号
     */
    @TableField("account")
    private String account;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 手机号码
     */
    @TableField("phone")
    private String phone;

    /**
     * 电子邮件
     */
    @TableField("email")
    private String email;

    /**
     * 是否禁用
     */
    @TableField("disabled")
    private Integer disabled;

    /**
     * 账号类型
     * 默认为普通账号
     */
    @TableField("user_type")
    private String userType = "1";


    private String openId;

    private String unionId;

    @TableField("login_expire")
    private Date loginExpire;

    /**
     * 头像
     */
    private String avatar;

    private String mpOpenId;
}
